<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%-- <c:if test="${sessionScope.admin != null}">
	<c:redirect url="/admin/IndexAdmin.htm" />
</c:if> --%>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin Login [COMPANY_NAME]</title>
<meta charset="utf-8">
<meta name="description" content="Your description">
<meta name="keywords" content="Your keywords">
<meta name="author" content="Your name">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/script.js"></script>
<script type="text/javascript"
	src="https://apis.google.com/js/plusone.js"></script>
<!--[if lt IE 8]>
   <div style=' clear: both; text-align:center; position: relative;'>
     <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
       <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
    </a>
  </div>
<![endif]-->
<!--[if lt IE 9]>
	<script src="js/html5.js"></script>
	<link rel="stylesheet" href="css/ie.css"> 
<![endif]-->

<!-- For the loggin errors -->
<style>
.error {
	color: #ff0000;
}

.errorblock {
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>

</head>
<body>
	<!-- PRO Framework Panel Begin -->
	<!-- <div id="advanced"><span class="trigger"><strong></strong><em></em></span><div class="bg_pro"><div class="pro_main"><a href="" class="pro_logo"></a><ul class="pro_menu"><li><a href="index.html"><img src="images/pro_home.png" alt=""></a></li><li class="current"><a href="404.html">Pages<span></span></a><ul>	<li class="current"><a href="under_construction.html">Under Construction</a></li><li><a href="intro.html">Intro Page</a></li><li><a href="404.html">404 page</a></li></ul></li><li><a href="layouts.html">Layouts</a></li><li><a href="typography.html">Typography</a></li><li><a href="portfolio.html">Gallery Layouts<span></span></a><ul><li><a href="portfolio.html">Portfolio</a></li><li><a href="just-slider.html">Sliders</a><ul><li><a href="just-slider.html">Just Slider</a></li><li><a href="kwicks.html">Kwicks Slider</a></li><li><a href="functional-slider.html">Functional Slider</a></li></ul></li><li><a href="gallery-page1.html">Gallery</a></li></ul></li><li><a href="misc.html">Extras<span></span></a><ul><li><a href="social_media.html">Social and Media<br> Sharing</a></li><li><a href="css3.html">CSS3 Tricks</a></li><li><a href="misc.html">Misc</a></li></ul></li></ul><div class="clear"></div></div></div><div class="bg_pro2"></div></div> -->
	<!-- PRO Framework Panel End -->
	<div id="fb-root"></div>

	<div class="constuction-main">
		<div id="constuction-box">
			<div class="inside">
				<div class="inner">
					<h3>Welcome!</h3>
					<h1>
						<strong>Admin Login</strong>
					</h1>
					<p>The bellow form is used for admin login:</p>
					<c:if test="${not empty error}">
						<div class="errorblock">
							Your login attempt was not successful, try again.<br /> Caused :
							${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
						</div>
					</c:if>
					<spring:url var="action" value="j_spring_security_check"/>
					
					<form:form id="log_in" method="POST" action="${action}">
						<form:errors path="*" cssClass="errorblock" element="div" />
						<label>
							<spring:message code="LoginAdmin.label.userName" />
						</label>
						<br />
					 	<input type="text" name="j_username"
							onfocus="if(this.value=='Login'){this.value=''}"
							onblur="if(this.value==''){this.value='Login'}" />
						<br />
						<br />
						<label>
							<spring:message code="LoginAdmin.label.password" />
						</label>
						<br />
						<input type="password" name="j_password"
							onfocus="if(this.value=='Password'){this.value=''}"
							onblur="if(this.value==''){this.value='Password'}" />
						<br />
						<br />
						<a class="btn" onClick="document.getElementById('log_in').submit()">Log In</a>
					</form:form>
				</div>
			</div>
		</div>
		<div class="social_icons">
			<ul>
				<li><a href="" class="normaltip" title="Twitter"><img
						src="images/constr_icon1.png" alt=""></a></li>
				<li><a href="" class="normaltip" title="Facebook"><img
						src="images/constr_icon2.png" alt=""></a></li>
				<li><a href="" class="normaltip" title="Google Plus"><img
						src="images/constr_icon3.png" alt=""></a></li>
			</ul>
		</div>
	</div>
</body>
</html>